# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)

# 项目信息
project (benchmark)

# 查找目录下的所有源文件
# 并将名称保存到 DIR_SRCS 变量
#aux_source_directory(. DIR_SRCS)

file(GLOB main_src  main.cc lmntal/concurrent/*.cc lmntal/concurrent/*.h lmntal/concurrent/hashmap/*.cc lmntal/concurrent/hashmap/*.h)
SET( main_src ${main_src})  

# 添加 math 子目录
#add_subdirectory(math)

# 指定生成目标
add_executable(benchmark ${main_src} )

target_link_libraries(benchmark pthread)

# 添加链接库
#target_link_libraries(Demo MathFunctions)

# 指定生成 Linking C static library libJMEncryptBox.a 链接库
#add_library (JMEncryptBox ${DIR_SRCS})  #static
#add_library (JMEncryptBox_x64 SHARED ${DIR_SRCS})
#add_library (JMEncryptBox_x64 STATIC ${DIR_SRCS})
